﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<OneDollarStore.Models.ChangePasswordModel>" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">
    Thay đổi mật khẩu
</asp:Content>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="right">
        <div style="margin-left:5px">
            <h2>Thay đổi mật khẩu</h2>
            <br />
            <p>Điền vào form bên dưới.<br />
               Mật khẩu ít nhất phải có 
               <%= Html.Encode(ViewData["PasswordLength"]) %>
               kí tự.
            </p>
            <br />
            <% using (Html.BeginForm())
               { %>
                <%= Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.") %>
                <br />
                <div>
                    <fieldset style="width:55%">
                        <legend style="font-style:italic">Thông tin tài khoản</legend>
                        <div class="editor-label">
                            <%= Html.LabelFor(m => m.OldPassword) %>
                        </div>
                        <div class="editor-field">
                            <%= Html.PasswordFor(m => m.OldPassword) %>
                            <%= Html.ValidationMessageFor(m => m.OldPassword) %>
                        </div>
                        <div class="editor-label">
                            <%= Html.LabelFor(m => m.NewPassword) %>
                        </div>
                        <div class="editor-field">
                            <%= Html.PasswordFor(m => m.NewPassword) %>
                            <%= Html.ValidationMessageFor(m => m.NewPassword) %>
                        </div>
                        <div class="editor-label">
                            <%= Html.LabelFor(m => m.ConfirmPassword) %>
                        </div>
                        <div class="editor-field">
                            <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                            <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                        </div>
                        <p style="clear:both; text-align:right; margin-right:13px" >
                            <br />
                            <input type="submit" value="Change Password" />
                        </p>
                        <br />
                    </fieldset>
                </div>
            <% } %>
        </div>
    </div>
</asp:Content>